1 School of Information Science and Technology, Beijing Forestry University, Beijing, China
2 School of Software and Microelectronic, Peking University, Beijing, China
3 Engineering Research Center for Forestry-oriented Intelligent Information Processing of National Forestry and Grassland Administration, Beijing, China
TL;DRPropose a geometry-adaptive Transformer for 3D point cloud semantic segmentation that integrates spherical harmonic geometric encoding, dynamic positional bias, and point-wise convolution attention
GAPFormer addresses the limited geometric modeling capabilities of Transformer-based methods in 3D point cloud segmentation. It proposes three key modules: SHGFM for direction-aware geometric encoding via spherical harmonics, Geo-DPB for geometry-aware dynamic positional bias, and PCBA for multi-level channel-spatial feature fusion. The framework achieves state-of-the-art performance on ScanNet v2, S3DIS, and ScanNet200 benchmarks.
Existing Transformer-based point cloud methods lack sufficient geometric awareness - they struggle with representing complex local structures and fail to utilize geometric prior knowledge effectively.
Enhance Transformer-based point cloud segmentation by explicitly injecting geometric priors at multiple levels: (1) spherical harmonic basis functions for direction-aware feature encoding, (2) geometry-guided dynamic positional bias for attention enhancement, and (3) point-wise convolution-based channel-spatial co-optimization for feature refinement.
Leverages learnable spherical harmonic basis functions to encode direction-aware geometric relationships in local neighborhoods. By computing polar/azimuthal angles and low-order real-valued SH coefficients, it captures anisotropic geometric structures that conventional coordinate embedding misses.
A three-stage progressive module that precomputes 7D geometric feature vectors (offsets, distance, direction), maps them through a residual MLP to generate dynamic attention biases stored in a hash dictionary, and injects these biases into the standard attention mechanism.
Refines the CBAM channel-spatial attention mechanism for 3D point clouds. Uses average/max pooling for channel attention and Conv1D for spatial attention, achieving simultaneous optimization of channel-wise and spatial feature representations while maintaining computational efficiency.
Fig. 1. GAPFormer Network Architecture.
The overall architecture follows an encoder-decoder paradigm: raw point clouds are transformed into high-dimensional features via sparse convolution, then a hierarchical Transformer encoder progressively learns multi-scale geometric features with cascaded pooling, while the decoder upsamples to reconstruct fine spatial details for accurate segmentation.
Fig. 2. SHGFM Module.
SHGFM computes direction vectors, magnitudes, and normalized vectors for each neighbor, then derives polar/azimuthal angles to calculate spherical harmonic basis functions (degree 0-2). These SH coefficients are concatenated with original features and relative distances, then fused through a residual MLP to produce geometry-prior-enhanced Key-Value pairs.
Fig. 3. Geo-DPB Module.
Geo-DPB precomputes all possible 7D geometric feature vectors within a local 3D neighborhood, maps them through a 3-layer MLP (ReLU+GeLU activations) to generate positional biases stored in a hash dictionary for efficient inference. During attention, biases are retrieved via quantized offsets and additively injected into attention weights.
Fig. 4. PCBA Module.
| Method | ScanNet v2 Val | S3DIS OA | S3DIS mAcc | S3DIS mIoU | ScanNet200 Val |
|---|---|---|---|---|---|
| MinkUNet | 72.2 | - | 71.7 | 65.4 | 25.0 |
| OctFormer | - | - | - | - | 32.6 |
| PTv1 | 70.6 | 90.8 | 76.5 | 70.4 | 27.8 |
| PTv2 | 75.4 | 91.1 | 77.9 | 71.6 | 30.2 |
| PTv3 | 77.12 | 91.4 | 77.3 | 71.8 | 35.2 |
| GAPFormer ours | 77.35 | 91.8 | 77.9 | 72.6 | 35.44 |
GAPFormer achieves consistent improvements across all three benchmarks. On S3DIS, it notably improves per-class mIoU for board (+5.4%), bookcase (+2.9%), and sofa (+2.1%) over PTv3, demonstrating superior fine-grained structure segmentation. Ablation study confirms that all three modules contribute synergistically, with the full model achieving the best mIoU of 72.6%.
Fig. 5. Qualitative comparison of S3DIS segmentation results.
Explicitly encoding geometric priors through spherical harmonics and dynamic positional biases significantly enhances Transformer-based point cloud segmentation. The key insight is that direction-aware frequency-domain encoding (SHGFM) combined with geometry-guided attention bias (Geo-DPB) addresses the fundamental limitation of conventional coordinate embedding approaches.
@inproceedings{zheng2025gapformer,
title={GAPFormer: Geometry-Adaptive Propagated Transformer for Point Cloud Representation},
author={Zheng, Wanlu and Wang, Shaorong},
booktitle={Pattern Recognition and Computer Vision (PRCV)},
pages={336--350},
year={2025},
publisher={Springer},
doi={10.1007/978-981-95-5737-0_24}
}